const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    categories: [{ ref: 'Category', type: mongoose.Schema.Types.ObjectId }],
    title: { type: String },
    body: { type:String },
})

module.exports = mongoose.model('Article', schema)